﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001161 RID: 4449
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetGroupCustomSaveDataCsReq : IMessage<SetGroupCustomSaveDataCsReq>, IMessage, IEquatable<SetGroupCustomSaveDataCsReq>, IDeepCloneable<SetGroupCustomSaveDataCsReq>, IBufferMessage
	{
		// Token: 0x1700384D RID: 14413
		// (get) Token: 0x0600C71B RID: 50971 RVA: 0x002192E5 File Offset: 0x002174E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetGroupCustomSaveDataCsReq> Parser
		{
			get
			{
				return SetGroupCustomSaveDataCsReq._parser;
			}
		}

		// Token: 0x1700384E RID: 14414
		// (get) Token: 0x0600C71C RID: 50972 RVA: 0x002192EC File Offset: 0x002174EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetGroupCustomSaveDataCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700384F RID: 14415
		// (get) Token: 0x0600C71D RID: 50973 RVA: 0x002192FE File Offset: 0x002174FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetGroupCustomSaveDataCsReq.Descriptor;
			}
		}

		// Token: 0x0600C71E RID: 50974 RVA: 0x00219305 File Offset: 0x00217505
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataCsReq()
		{
		}

		// Token: 0x0600C71F RID: 50975 RVA: 0x00219318 File Offset: 0x00217518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataCsReq(SetGroupCustomSaveDataCsReq other) : this()
		{
			this.saveData_ = other.saveData_;
			this.groupId_ = other.groupId_;
			this.entryId_ = other.entryId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C720 RID: 50976 RVA: 0x00219355 File Offset: 0x00217555
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataCsReq Clone()
		{
			return new SetGroupCustomSaveDataCsReq(this);
		}

		// Token: 0x17003850 RID: 14416
		// (get) Token: 0x0600C721 RID: 50977 RVA: 0x0021935D File Offset: 0x0021755D
		// (set) Token: 0x0600C722 RID: 50978 RVA: 0x00219365 File Offset: 0x00217565
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string SaveData
		{
			get
			{
				return this.saveData_;
			}
			set
			{
				this.saveData_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17003851 RID: 14417
		// (get) Token: 0x0600C723 RID: 50979 RVA: 0x00219378 File Offset: 0x00217578
		// (set) Token: 0x0600C724 RID: 50980 RVA: 0x00219380 File Offset: 0x00217580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17003852 RID: 14418
		// (get) Token: 0x0600C725 RID: 50981 RVA: 0x00219389 File Offset: 0x00217589
		// (set) Token: 0x0600C726 RID: 50982 RVA: 0x00219391 File Offset: 0x00217591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x0600C727 RID: 50983 RVA: 0x0021939A File Offset: 0x0021759A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetGroupCustomSaveDataCsReq);
		}

		// Token: 0x0600C728 RID: 50984 RVA: 0x002193A8 File Offset: 0x002175A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetGroupCustomSaveDataCsReq other)
		{
			return other != null && (other == this || (!(this.SaveData != other.SaveData) && this.GroupId == other.GroupId && this.EntryId == other.EntryId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C729 RID: 50985 RVA: 0x00219408 File Offset: 0x00217608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SaveData.Length != 0)
			{
				num ^= this.SaveData.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C72A RID: 50986 RVA: 0x0021947B File Offset: 0x0021767B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C72B RID: 50987 RVA: 0x00219483 File Offset: 0x00217683
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C72C RID: 50988 RVA: 0x0021948C File Offset: 0x0021768C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SaveData.Length != 0)
			{
				output.WriteRawTag(42);
				output.WriteString(this.SaveData);
			}
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EntryId);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C72D RID: 50989 RVA: 0x00219508 File Offset: 0x00217708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SaveData.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.SaveData);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C72E RID: 50990 RVA: 0x0021957C File Offset: 0x0021777C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetGroupCustomSaveDataCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SaveData.Length != 0)
			{
				this.SaveData = other.SaveData;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C72F RID: 50991 RVA: 0x002195E5 File Offset: 0x002177E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C730 RID: 50992 RVA: 0x002195F0 File Offset: 0x002177F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 72U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GroupId = input.ReadUInt32();
						}
					}
					else
					{
						this.EntryId = input.ReadUInt32();
					}
				}
				else
				{
					this.SaveData = input.ReadString();
				}
			}
		}

		// Token: 0x0400500E RID: 20494
		private static readonly MessageParser<SetGroupCustomSaveDataCsReq> _parser = new MessageParser<SetGroupCustomSaveDataCsReq>(() => new SetGroupCustomSaveDataCsReq());

		// Token: 0x0400500F RID: 20495
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005010 RID: 20496
		public const int SaveDataFieldNumber = 5;

		// Token: 0x04005011 RID: 20497
		private string saveData_ = "";

		// Token: 0x04005012 RID: 20498
		public const int GroupIdFieldNumber = 12;

		// Token: 0x04005013 RID: 20499
		private uint groupId_;

		// Token: 0x04005014 RID: 20500
		public const int EntryIdFieldNumber = 9;

		// Token: 0x04005015 RID: 20501
		private uint entryId_;
	}
}
